middle mouse.
Now let's create a script named FreeView, which is attached to the master camera. Let's take a look at its implementation process:
Using UnityEngine; using System. collections; public class FreeView: MonoBehaviour {// observe the Target public Transform Target; // observe the Distance from public float Distance = 5F; // the rotation speed is private float SpeedX = 240; private float SpeedY
First step: View server resourcesCat/proc/cpuinfo has several CPUs that are several logical CPUs (but not actual CPUs, physical CPUs)Number of physical CPUs queried: Cat/proc/cpuinfo | grep physical (there are several in Physical-id)Number of query logical CPUs: Cat/proc/cpuinfo (there are several cores in the actual 1 CPUs)Query Memory: Free Total joinsStep Two: Deploy the environment, modify the configuration fileVI filename: Q exitStep three: Monitoring during testing, viewing logsView overal
: grep "string" path "-rn" indicates the number of lines and filenames in the file that lists the stringProcess Management class commandsView process: PS auxKill process: Kill PIDView Memory: FreeView CPU Share: TopMiscellaneous commandsSoftware Management: RPM package "-IVH" means installation package "-qa" means to view installed packages "-e" means uninstalling installed packagesPipe operators: Command 1 | Command 2 The output of the first command
shared memory segments identified with Shmid
-Q msgkey Remove Message Queuing created with Msqkey
-Q msqid Remove Message Queuing identified with Msqid
-s Semkey removal of signals created with Semkey
-s semid removal of signals identified with Semid
5.uptimeThe following information is displayed in turn: The current time, how long the system has been running, how many users are currently logged in, the average load of the system in the past 1 minutes, 5 minutes, and 15 min
Tags: bz2 api find Direction password Free NETWORK Service what are the date openWhat do you see in a directory (folder)? ------------ls-lWhere is it? -----------------pwdChange Path-----------------CDCreate directory-----------------mkdirDelete directory-----------------Rfdir can only delete empty directoriesRM can delete files and directories at the same timeMan Help file1. User commands2, system invoke the pretext API3. C library function4, System equipment related5. Configuration Files6. Gam
the machine or service network restart.
LocaleDisplay System Language
Export lang = zh_cn.gbkSet the system language to solve consol Chinese garbled characters
Ln-s src_full_file the_link_nameCreate soft link
LastView logged-in user history in reverse order
HistoryView History commands
Tail-10 somefileView the last 10 lines of the file
Head-10 somefileView the first 10 lines of the file
Tail-F somefileView File Content in real time for debugging
Date-s 10/09/2009Modification date
Date-s 13:24:0
FreeView the memory that is idle or used in the system.UnamePrint system Information, kernal, cups, hardware, and more.UptimeShows how long the system has been powered on, and the average load of 1, 5, and 15 minutes.NetstatView network-related information, network connections, routing tables, Interface states (Interface Statistics), masquerade connections, multicast members (multicast memberships), and more.DmesgCheck the core (kernel) for hardware t
Dfviewing system partitions and usageHow to use:Df-h (automatically according to the size of the unit to fit the display)Df-i (view inode usage)FreeView Swap partition UsageDuView the specified directory size (space-consuming size)How to use:Du-h/etc/(view/etc/directory size, including self-directory size)Du-s/etc/(view/etc/directory or file size, not including subdirectory size)FDISK (partitioning the disk)How to use:Fidsk-l (View the current partiti
systat installation. View%util,%idle, if the%util close to 100%, indicating that the resulting I/O request too much, i/0 system is full load, the disk may be a bottleneck,%idle less than 70%,i/0 pressure is relatively large, general reading speed has more waiting.In conjunction with the vmstat-1 command, look at the B parameter, indicating the number of processes waiting for the resource, such as waiting for I/O, memory, etc., as usual time >1, then be concerned. I/o read/write load can be eval
Tags: href yum source/usr httpd full Appach definition how MoDFirst, lamp compilationlinux+apache+mysql+phpPHP can be found by Appchae to parse PHP script, to operate the database through PHP1. Installing the GCC compilerHow to compile the source code C language under LinuxView Memory FreeView hard Disk Fdisk-lView Mount Status Df-hCompile process: build configuration file, compile, installIn the Software installation package. h file is the C-language
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.